* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0);
}

#main {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    width: 600px;
    height: 700px;
    background-color: rgba(29, 54, 163, 0.534);
}


.game_area {
    position: relative;
    width: 550px;
    height: 600px;
    background-color: rgb(0, 0, 0);
}

/* 设置蛇 */
.snake>div {
    position: absolute;
    width: 10px;
    height: 10px;
    /* 设置形状为三角形 */
    border: 1px solid rgb(11, 194, 207);
    background-color: black;
    /* rotate: 90deg; */
    /* border: 1px solid red; */
}



/* 设置食物 */
.food {
    position: absolute;
    width: 10px;
    height: 10px;
    left: 50px;
    top: 350px;
    border-radius: 30%;
    background-color: rgb(255, 0, 0);
}


.game_info {
    border-radius: 50px;
    background-color: #0d3fa4;
    width: 550px;
    height: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}



.game_info span {
    font-size: 15px;
}

.restartBtn {
    width: 100px;
    height: 30px;
    background-color: rgb(255, 0, 0);
    border-radius: 30px;
    z-index: 999;
}